@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #3b82f6;
    --secondary-color: #4f46e5;
    --accent-color: #0f172a;
    --text-color: #1f2937;
    --text-light-color: #4b5563;
    --background-color: #f9fafb;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --hover-color: #f3f4f6;
}

/* Global Styles */
html {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.5;
}

/* Tab Navigation */
#tabsNav {
    scrollbar-width: none;
}

#tabsNav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    font-weight: 500;
}

.tab-btn:not(.active) {
    border-bottom: 2px solid transparent;
}

.tab-pane {
    transition: opacity 0.4s ease-in-out;
}

.tab-pane.hidden {
    display: none;
    opacity: 0;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Font Mono */
.font-geist-mono {
    font-family: ui-monospace, 'Courier New', monospace;
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dark mode styling (triggered by script) */
body.dark-mode {
    --text-color: #f3f4f6;
    --text-light-color: #9ca3af;
    --background-color: #111827;
    --card-background: #1f2937;
    --border-color: #374151;
    --hover-color: #272f3d;
}

body.dark-mode header {
    background-color: #1e293b;
    border-color: #2d3748;
}

body.dark-mode .bg-white {
    background-color: var(--card-background);
}

body.dark-mode .bg-gray-50 {
    background-color: #1a202c;
}

body.dark-mode .bg-gray-100,
body.dark-mode .border-gray-100 {
    background-color: #2d3748;
    border-color: #2d3748;
}

body.dark-mode .text-gray-900 {
    color: #f3f4f6;
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600 {
    color: #d1d5db;
}

body.dark-mode .text-gray-500 {
    color: #9ca3af;
}

body.dark-mode .border-gray-200,
body.dark-mode .border-gray-100 {
    border-color: #374151;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
    
    .card-row {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
